package com.violet.domain.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.violet.annotation.transition.TNoTransition;
import com.violet.annotation.transition.TNoTransitionWithDefaultId;
import com.violet.annotation.transition.TSub;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
@TableName("buy_product")
public class BuyProduct implements PO {
    @TNoTransitionWithDefaultId(prefix = "BP")
    private String id;

    @TNoTransition
    private String orderId;

    @TNoTransition
    private String productId;


    private String name;
    private String description;
    private Double currentPrice;
    private Double originalPrice;
    private Integer count;
    private String unit;

    @TSub
    private String image;
}
